import axios from '@/axios'
import { queryParams } from '@/composables/util'
export const getAgentListAPI = (page, query = {}) => {
  let r = queryParams(query)
  return axios.get(`/admin/agent/${page}${r}`)
}
export const getAgentOrderListAPI = (page, query = {}) => {
  let r = queryParams(query)
  return axios.get(`/admin/user_bill/${page}${r}`)
}
export const getAgentStatisticsAPI = () => {
  return axios.get('/admin/agent/statistics')
}
export const getConfigAPI = () => {
  return axios.get(`/admin/distribution_setting/get`)
}
export const setConfigAPI = (data) => {
  return axios.post(`/admin/distribution_setting/set`, data)
}
